function changeHtml(){   
    var ht = window.parent.document.URL;	
	if(ht.indexOf("?") >= 0 ){
        var urlparam = ht.split("?")[1].split("&")[0].substring(5);
        $("#html_farm").attr("src", "AgriMonitor/index.html?type=123&param=" + urlparam +"");
    }	
}
changeHtml();